package com.example.statistics.bean

import com.example.statistics.ex.IDialogModel

class InventoryBean(
    var ID: Int,
    var productId: Int,
    var purchaseProductId: Int,
    var factoryNo: String,
    var productName: String,
    val productNo: String = "",
    val specification: String? = "",
    var containerNo: String? = "",
    var contractNo: String? = "",
    var inventoryNumber: Int,//库存数量
    var date: String,//入库时间
    var unitPrice: Double,//d
) : IDialogModel, java.io.Serializable {
    override val itemName: String
        get() = factoryNo + productName
}

data class InventoryOrder(
    var ID: Int = 0,
    var userId: Int = 0,
    var sellerId: Int = 0,
    var customerId: Int = 0,
    var customerName: String = "",
    var type: String = "",
    var area: String = "",
    var car: String = "",
    var date: String = "",
    var sellerName: String = "",
    var arrearsAmount: Double = 0.0,
    var totalAmount: Double = 0.0,
    var discountAmount: Double = 0.0,
    var paymentAmount: Double = 0.0,
    var remark: String = "",
    var salesProductList: List<InventoryProduct>? = null,
    var statementList: List<StatementBean>? = null
)

data class InventoryProduct(
    var ID: Int = 0,
    var userId: Int = 0,
    var customerId: Int = 0,
    var orderId: Int = 0,
    var sellerId: Int = 0,
    var inventoryId: Int = 0,
    var purchaseProductId: Int = 0,
    var productId: Int = 0,
    var sellerName: String = "",
    var customerName: String = "",
    var factoryNo: String = "",
    var productName: String = "",
    var specification: String = "",
    var type: String = "",
    var date: String = "",
    var supplier: String = "",
    var warehouse: String = "",
    var salesNumber: Int? = 0,
    var salesWeight: Double? = 0.0,
    var salesPrice: Double? = 0.0,
    var salesAmount: Double? = 0.0,
    var totalAmount: Double? = 0.0,
    var remark: String = ""

)